/**
 * 
 */
package com.study.strategy;

import lombok.Data;

/**
 * @author Administrator
 * @date 2019年5月7日
 */
@Data
public class Person {

	private String name; 
	private Car car;
	
	public Person(String name, Car car){
		this.name = name;
		this.car = car;
	};
	public void drive(){
		System.out.println(this.name + "的" + this.car.run());
	}
	
	public void drive(CarFunction car){
		System.out.println(this.name + "的" + car.run());
	}
}
